﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

class MethodGetMax
{
    static void Main()
    {
        Console.Write("Enter first integer:");
        int firstInteger = int.Parse(Console.ReadLine());
        Console.Write("\nEnter second integer:");
        int secondInteger = int.Parse(Console.ReadLine());
        Console.Write("\nEnter third integer:");
        int thirdInteger = int.Parse(Console.ReadLine());

        int biggestInteger = GetMax(GetMax(firstInteger, secondInteger), thirdInteger);
        Console.WriteLine("The biggest integer is: {0}", biggestInteger);
    }

    static int GetMax(int firstInteger, int secondInteger)
    {
        if (firstInteger > secondInteger)
        {
            return firstInteger;
        }
        return secondInteger;
    }
}